package com.sun.androidexerciseproject.function.util;

import java.util.concurrent.TimeUnit;

/**
 * Description:
 * File: TimeUnitTest.java
 * Author: Administrator
 * Create: 2019/10/31 13:48
 */
public class TimeUnitTest {
    public static void main(String[] args) {
        try {
            System.out.println("timestamp begin " + System.currentTimeMillis());
            TimeUnit.SECONDS.sleep(5);
            System.out.println("timestamp end " + System.currentTimeMillis());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
